home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / serial / setseria.10 / setseria / setserial-2.10 / rc.serial < prev    next >
Text File  |  1994-05-20  |  8KB  |  195 lines

  1. #
  2. # /etc/rc.serial 
  3. #    Initializes the serial ports on your system
  4. #
  5. # Distributed with setserial version 2.10
  6. #
  7.  
  8. # Standard flags you want your serial devices to have
  9. # Examples: SAK, pgrp_lockout, session_lockout
  10. #
  11. STD_FLAGS="session_lockout"
  12.  
  13. SETSERIAL=/sbin/setserial
  14.  
  15. echo -n "Configuring serial ports...."
  16.  
  17. # Do wild interrupt detection
  18. #
  19. ${SETSERIAL} -W /dev/cua0
  20.  
  21. ###############################################################
  22. #
  23. # AUTOMATIC CONFIGURATION 
  24. #
  25. # Uncomment the appropriate lines below to enable auto-configuration
  26. # of a particular board.  Or comment them out to disable them....
  27. #
  28. # NOTE!  Although the automatic configuration is enabled by default,
  29. # I strongly suggest that you comment out this section and use the 
  30. # manual configuration section instead.  It's more work to set up, but 
  31. # it's more reliable.
  32. #
  33. ###############################################################
  34.  
  35. # Do AUTOMATIC_IRQ probing
  36. #
  37. AUTO_IRQ=auto_irq
  38.  
  39. # These are the standard COM1 through COM4 devices
  40. #
  41. # If you have an internal modeme with a Rockwell Chipset, add a "skip_test"
  42. # to the /dev/cua3 line below.  (It's not added by default because it will
  43. # screw up people with 8514 displays).
  44. #
  45. ${SETSERIAL} /dev/cua0 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
  46. ${SETSERIAL} /dev/cua1 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
  47. ${SETSERIAL} /dev/cua2 ${AUTO_IRQ} skip_test autoconfig ${STD_FLAGS}
  48. ${SETSERIAL} /dev/cua3 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  49.  
  50. # These are for the first AST Fourport board (base address 0x1A0)
  51. #
  52. ${SETSERIAL} /dev/cua4 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  53. ${SETSERIAL} /dev/cua5 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  54. ${SETSERIAL} /dev/cua6 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  55. ${SETSERIAL} /dev/cua7 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  56.  
  57. # These are for the second AST Fourport board (base address 0x2A0)
  58. #
  59. ${SETSERIAL} /dev/cua8 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  60. ${SETSERIAL} /dev/cua9 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  61. ${SETSERIAL} /dev/cua10 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  62. ${SETSERIAL} /dev/cua11 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  63.  
  64. # These are the 3rd and 4th ports on the Accent Async board.
  65. #
  66. #${SETSERIAL} /dev/cua12 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  67. #${SETSERIAL} /dev/cua13 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  68.  
  69. # Usenet Serial Board II (base address 0x100)
  70. #
  71. #${SETSERIAL} /dev/cua16 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  72. #${SETSERIAL} /dev/cua17 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  73. #${SETSERIAL} /dev/cua18 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  74. #${SETSERIAL} /dev/cua19 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  75.  
  76.  
  77. # BocaBoard 4 port (BB-1004) (base address 0x100)
  78. #
  79. #${SETSERIAL} /dev/cua16 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  80. #${SETSERIAL} /dev/cua17 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  81. #${SETSERIAL} /dev/cua18 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  82. #${SETSERIAL} /dev/cua19 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  83.  
  84. # BocaBoard 8 port (BB-1008) (base address 0x100),
  85. # or two BB-1004's (base addresses 0x100 and 0x120)
  86. #
  87. #${SETSERIAL} /dev/cua16 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  88. #${SETSERIAL} /dev/cua17 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  89. #${SETSERIAL} /dev/cua18 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  90. #${SETSERIAL} /dev/cua19 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  91. #${SETSERIAL} /dev/cua20 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  92. #${SETSERIAL} /dev/cua21 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  93. #${SETSERIAL} /dev/cua22 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  94. #${SETSERIAL} /dev/cua23 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  95.  
  96. # BocaBoard 16 port (BB-1008), (base address 0x100),
  97. # or two BB-1008's (base addresses 0x100 and 0x140),
  98. # or four BB-1004's (base address 0x100, 0x120, 0x140, and 0x160)
  99. #
  100. # Warning --- some of these ports may conflict with the Future Domain
  101. # SCSI controller.  If you want to run both the BocaBoards and the 
  102. # Future Domain controller, you may need to change the port assignment
  103. # of the Bocaboards -- see below in the section on manual configuration.
  104. #
  105. ${SETSERIAL} /dev/cua16 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  106. ${SETSERIAL} /dev/cua17 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  107. ${SETSERIAL} /dev/cua18 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  108. ${SETSERIAL} /dev/cua19 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  109. ${SETSERIAL} /dev/cua20 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  110. ${SETSERIAL} /dev/cua21 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  111. ${SETSERIAL} /dev/cua22 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  112. ${SETSERIAL} /dev/cua23 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  113. ${SETSERIAL} /dev/cua24 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  114. ${SETSERIAL} /dev/cua25 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  115. ${SETSERIAL} /dev/cua26 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  116. ${SETSERIAL} /dev/cua27 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  117. ${SETSERIAL} /dev/cua28 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  118. ${SETSERIAL} /dev/cua29 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  119. ${SETSERIAL} /dev/cua30 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  120. ${SETSERIAL} /dev/cua31 ${AUTO_IRQ} autoconfig ${STD_FLAGS}
  121.  
  122. ###############################################################
  123. #
  124. # MANUAL CONFIGURATION 
  125. #
  126. # If you want to do manual configuration of one or more of your 
  127. # serial ports, uncomment and modify the relevant lines.
  128. #
  129. ###############################################################
  130.  
  131. # These are the standard COM1 through COM4 devices
  132. #
  133. #${SETSERIAL} /dev/cua0 uart 16450 port 0x3F8 irq 4 ${STD_FLAGS}
  134. #${SETSERIAL} /dev/cua1 uart 16450 port 0x2F8 irq 3 ${STD_FLAGS}
  135. #${SETSERIAL} /dev/cua2 uart 16450 port 0x3E8 irq 4 ${STD_FLAGS}
  136. #${SETSERIAL} /dev/cua3 uart 16450 port 0x2E8 irq 3 ${STD_FLAGS}
  137.  
  138. # These are the first set of AST Fourport ports
  139. #
  140. #${SETSERIAL} /dev/cua4 uart 16450 port 0x1A0 irq 9 fourport ${STD_FLAGS}
  141. #${SETSERIAL} /dev/cua5 uart 16450 port 0x1A8 irq 9 fourport ${STD_FLAGS}
  142. #${SETSERIAL} /dev/cua6 uart 16450 port 0x1B0 irq 9 fourport ${STD_FLAGS}
  143. #${SETSERIAL} /dev/cua7 uart 16450 port 0x1B8 irq 9 fourport ${STD_FLAGS}
  144.  
  145. # These are the second set of AST Fourport ports
  146. #
  147. #${SETSERIAL} /dev/cua8 uart 16450 port 0x2A0 irq 5 fourport ${STD_FLAGS}
  148. #${SETSERIAL} /dev/cua9 uart 16450 port 0x2A8 irq 5 fourport ${STD_FLAGS}
  149. #${SETSERIAL} /dev/cua10 uart 16450 port 0x2B0 irq 5 fourport ${STD_FLAGS}
  150. #${SETSERIAL} /dev/cua11 uart 16450 port 0x2B8 irq 5 fourport ${STD_FLAGS}
  151.  
  152. # These are the 3rd and 4th ports on the Accent Async board.
  153. #
  154. #${SETSERIAL} /dev/cua12 uart 16450 port 0x330 irq 4 ${STD_FLAGS}
  155. #${SETSERIAL} /dev/cua13 uart 16450 port 0x338 irq 4 ${STD_FLAGS}
  156.  
  157. # These are two spare devices you can use to customize for 
  158. # some board which is not supported above....
  159. #${SETSERIAL} /dev/cua14 uart XXXXX port XXXX irq X ${STD_FLAGS}
  160. #${SETSERIAL} /dev/cua15 uart XXXXX port XXXX irq X ${STD_FLAGS}
  161.  
  162. # These are the ports used for either the Usenet Serial II
  163. # board, or the Boca Board 4, 8, or 16 port boards.
  164. #
  165. # Uncomment only the first 4 lines for the Usenet Serial II board,
  166. # and uncomment the first 4, 8, or all 16 lines for the
  167. # Boca Board BB-1004, BB-1008, and BB-2016 respectively.
  168. #
  169. #${SETSERIAL} /dev/cua16 uart 16550A port 0x100 irq 12 ${STD_FLAGS}
  170. #${SETSERIAL} /dev/cua17 uart 16550A port 0x108 irq 12 ${STD_FLAGS}
  171. #${SETSERIAL} /dev/cua18 uart 16550A port 0x110 irq 12 ${STD_FLAGS}
  172. #${SETSERIAL} /dev/cua19 uart 16550A port 0x118 irq 12 ${STD_FLAGS}
  173. #${SETSERIAL} /dev/cua20 uart 16550A port 0x120 irq 12 ${STD_FLAGS}
  174. #${SETSERIAL} /dev/cua21 uart 16550A port 0x128 irq 12 ${STD_FLAGS}
  175. #${SETSERIAL} /dev/cua22 uart 16550A port 0x130 irq 12 ${STD_FLAGS}
  176. #${SETSERIAL} /dev/cua23 uart 16550A port 0x138 irq 12 ${STD_FLAGS}
  177. #${SETSERIAL} /dev/cua24 uart 16550A port 0x140 irq 12 ${STD_FLAGS}
  178. #${SETSERIAL} /dev/cua25 uart 16550A port 0x148 irq 12 ${STD_FLAGS}
  179. #${SETSERIAL} /dev/cua26 uart 16550A port 0x150 irq 12 ${STD_FLAGS}
  180. #${SETSERIAL} /dev/cua27 uart 16550A port 0x158 irq 12 ${STD_FLAGS}
  181. #${SETSERIAL} /dev/cua28 uart 16550A port 0x160 irq 12 ${STD_FLAGS}
  182. #${SETSERIAL} /dev/cua29 uart 16550A port 0x168 irq 12 ${STD_FLAGS}
  183. #${SETSERIAL} /dev/cua30 uart 16550A port 0x170 irq 12 ${STD_FLAGS}
  184. #${SETSERIAL} /dev/cua31 uart 16550A port 0x178 irq 12 ${STD_FLAGS}
  185.  
  186. ###########################################################
  187. #
  188. # Print the results of the serial configuration process
  189. #
  190. ###########################################################
  191.  
  192. echo "done."
  193.  
  194. ${SETSERIAL} -bg /dev/cua? /dev/cua??
  195.